﻿using UnityEngine;

namespace Vosvek.ProjectRogue
{

    public class Player : Actor
    {
        void Update()
        {
            // TEMP: This sort of thing should be controlled by a View. Keep it 
            // here for now, but remember that this is only temporary for 
            // testing.
            if (Input.GetKeyDown(KeyCode.UpArrow))
            {
                Move(Vector2.up);
            }
            else if (Input.GetKeyDown(KeyCode.LeftArrow))
            {
                Move(Vector2.left);
            }
            else if (Input.GetKeyDown(KeyCode.DownArrow))
            {
                Move(Vector2.down);
            }
            else if (Input.GetKeyDown(KeyCode.RightArrow))
            {
                Move(Vector2.right);
            }
        }
    }

}
